name = "hello_world"
version = "0.0.1"
-authors = ["Yehuda Katz <wycats@example.com>"]
+authors = ["Your Name <you@example.com>"]
```
This is called a **manifest**, and it contains all of the metadata that Cargo
<pre><code class="highlight"><span class="gp">$</span> cargo build
<span style="font-weight: bold"
-class="s1"> Compiling</span> hello_world v0.0.1 (file:///Users/wycats/src/hello_world)</code></pre>
+class="s1"> Compiling</span> hello_world v0.0.1 (file:///path/to/project/hello_world)</code></pre>
And then run it:
<pre><code class="highlight"><span class="gp">$</span> cargo run
<span style="font-weight: bold"
-class="s1"> Fresh</span> hello-world v0.0.1 (file:///Users/wycats/src/hello_world)
+class="s1"> Fresh</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
<span style="font-weight: bold"
class="s1"> Running</span> `target/hello_world`
Hello world!</code></pre>
To build, just use `cargo build`:
<pre><code class="highlight"><span class="gp">$</span> cargo build
-<span style="font-weight: bold" class="s1"> Compiling</span> color v0.0.1 (file:///Users/wycats/src/color-rs)</code></pre>
+<span style="font-weight: bold" class="s1"> Compiling</span> color v0.0.1 (file:///path/to/project/color-rs)</code></pre>
This will fetch all of the dependencies and then build them, along with the
project.
name = "hello-world"
version = "0.0.1"
-authors = ["Yehuda Katz <wycats@example.com>"]
+authors = ["Your Name <you@example.com>"]
[dependencies.color]
<pre><code class="highlight"><span class="gp">$</span> cargo run
<span style="font-weight: bold" class="s1"> Compiling</span> color v0.0.1 (https://github.com/bjz/color-rs.git#bf739419)
-<span style="font-weight: bold" class="s1"> Compiling</span> hello-world v0.0.1 (file:///Users/wycats/src/hello_world)
+<span style="font-weight: bold" class="s1"> Compiling</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
<span style="font-weight: bold" class="s1"> Running</span> `target/hello_world`
Converting RGB to HSV!
HSV: HSV { h: 0, s: 1, v: 1 }</code></pre>
name = "hello_world"
version = "0.0.1"
-authors = ["Yehuda Katz <wycats@example.com>"]
+authors = ["Your Name <you@example.com>"]
[dependencies.color]
name = "hello_world"
version = "0.0.1"
-authors = ["Yehuda Katz <wycats@example.com>"]
+authors = ["Your Name <you@example.com>"]
[dependencies.color]
instead of the source specified in your `Cargo.toml`.
Cargo looks for a directory named `.cargo` up the directory hierarchy of
-your project. If your project is in `/Users/wycats/src/conduit-static`,
+your project. If your project is in `/path/to/project/conduit-static`,
it will search for a `.cargo` in:
-* `/Users/wycats/src/conduit-static`
-* `/Users/wycats/src`
-* `/Users/wycats`
-* `/Users`
+* `/path/to/project/conduit-static`
+* `/path/to/project`
+* `/path/to`
+* `/path`
* `/`
This allows you to specify your overrides in a parent directory that
Inside that file, put this:
```
-paths = ["/Users/wycats/src/conduit"]
+paths = ["/path/to/project/conduit"]
```
This array should be filled with directories that contain a `Cargo.toml`. In
<span style="font-weight: bold"
class="s1"> Compiling</span> color v0.0.1 (https://github.com/bjz/color-rs.git#bf739419)
<span style="font-weight: bold"
-class="s1"> Compiling</span> hello-world v0.0.1 (file:///Users/wycats/src/hello_world)
+class="s1"> Compiling</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
<span style="font-weight: bold"
class="s1"> Running</span> target/test/hello_world-9c2b65bbb79eabce
name = "hello_world"
version = "0.0.1"
-authors = ["Yehuda Katz <wycats@example.com>"]
+authors = ["Your Name <you@example.com>"]
```
This is called a **manifest**, and it contains all of the metadata that Cargo
<pre><code class="highlight"><span class="gp">$</span> cargo build
<span style="font-weight: bold"
-class="s1"> Compiling</span> hello_world v0.0.1 (file:///Users/wycats/src/hello_world)</code></pre>
+class="s1"> Compiling</span> hello_world v0.0.1 (file:///path/to/project/hello_world)</code></pre>
And then run it:
<pre><code class="highlight"><span class="gp">$</span> cargo run
<span style="font-weight: bold"
-class="s1"> Fresh</span> hello-world v0.1.0 (file:///Users/wycats/src/hello_world)
+class="s1"> Fresh</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
<span style="font-weight: bold"
class="s1"> Running</span> `target/hello_world`
Hello world!</code></pre>